package com.demandastatus.activity;

import com.demandasutatus.activity.R;

import android.app.Activity;
import android.app.ActionBar;
import android.app.Fragment;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.os.Build;

public class MainActivity extends Activity {

	Button bntAdicionar, bntDemandasFinalizadas, bntDemandasEmAndamento;
	
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		
		bntAdicionar = (Button) findViewById(R.id.BNT_CADASTRAR);
		bntDemandasFinalizadas = (Button)findViewById(R.id.BNT_FINALIZADAS);
		bntDemandasEmAndamento = (Button) findViewById(R.id.BNT_ANDAMENTO);
		
		bntAdicionar.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				//setContentView(R.layout.cadastro_activity);
				chamaTelaCadastro();
			}
		});


	}
	
	public void chamaTelaCadastro() {
		 
		Intent chamaTelaCadastro = new Intent(MainActivity.this, cadastroActivity.class);
		MainActivity.this.startActivity(chamaTelaCadastro);
		 
		}
}
